Chris Pollett > Old Classes >
CS185c

( Print View )

Grades: [Sec2]

Submit: [Sec2]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                            












HW#3 --- last modified January 01 1970 00:00:00..

Solution set.

Due date: Oct 30

Files to be submitted:
  hw3.zip

Purpose: To gain more experience with form programming, drawing on windows, and programming tables.

Specification:

You should only include your headers/source/resource files and Makefile in the zip file you submit. The command "make all" will be used to compile your program and "make clean" should get rid of the compiled files. Your goal for this homework is to write a virtual pet program. If you don't remember the Tamgotchi craze a few years ago, then check out the link. The best three programs for the class will receive up to 2 bonus pts which will be added to your score after curving. This homework is less constrained in what you have to do than the previous ones, however, here are some minimum things I want with your programs: (0) The menu for your program should have as a minimum the following items: (a) Instructions (b) About program (c) Settings (1) The virtual pet should make use of the window drawing functions to be drawn on the screen. (2) Frequent actions you would do with the pet should be supported by tapping on a hard button. (3) You should support at least one action by actually tapping on some part of the pet. (4) All actions you can do with the pet can be input as a single character graffiti code. (5) You should model your pet as some kind of finite state machine and have a minimum of the following states: (i) egg state (ii) normal state (infant, teenager, adult) (iii) hungry state (iv) bored state (v) dead state. (6) The transistion to at least one state involves using the system time functions and random number generation. (7) Selecting Settings from the menu starts a form with FrmPopupForm. This form has a reset checkbox on it to reset your pet to the birth state. It also has a table with at least five rules related to the transitions between pet states. The user can select whether a rules is applied or not by checking a checkbox.

Point Breakdown

Departmental coding guidelines for C++ followed.1pt
Criteria 0-7 above are 1 pt each. 8pts
One page propoal for your final project. Your project must make use of both IR beaming and conduits. 1pt
Total10pts